From a08b81eb0c0b76834c891a1d930643cd6c4568b0 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Fri, 16 Aug 2013 05:48:01 +0000 Subject: [PATCH] A surpisingly clean bill of health from valgrind on new navicache reader. Have some warning cleanups at no extra cost. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4541 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/coastexp.cc | 3 --- gpsbabel/exif.cc | 3 +-- gpsbabel/navicache.cc | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/gpsbabel/coastexp.cc b/gpsbabel/coastexp.cc index e25c0e54a..7874b09b4 100644 --- a/gpsbabel/coastexp.cc +++ b/gpsbabel/coastexp.cc @@ -698,9 +698,6 @@ ce_write(void) If doing waypoints, we write out the route waypoints (without the routes) and the standalone waypoints. */ - time_t now = 0; - now = current_time().toTime_t(); - write_xml_header(ofd); write_xml_entity_begin1(ofd, "", "NavObjectCollection", "created", ce_gen_current_time()); diff --git a/gpsbabel/exif.cc b/gpsbabel/exif.cc index ff304143a..d65e94a6e 100644 --- a/gpsbabel/exif.cc +++ b/gpsbabel/exif.cc @@ -589,7 +589,6 @@ exif_examine_app(exif_app_t* app) uint16_t endianess; uint32_t ident; gbfile* ftmp = exif_app->fcache; - int i; gbfrewind(ftmp); ident = gbfgetuint32(ftmp); @@ -611,7 +610,7 @@ exif_examine_app(exif_app_t* app) gbfseek(ftmp, 6, SEEK_SET); app->fexif = gbfopen(NULL, "wb", MYNAME); app->fexif->big_endian = ftmp->big_endian; - i = gbfcopyfrom(app->fexif, ftmp, 0x7FFFFFFF); + gbfcopyfrom(app->fexif, ftmp, 0x7FFFFFFF); exif_read_app(exif_app); } diff --git a/gpsbabel/navicache.cc b/gpsbabel/navicache.cc index cc4a6ce8a..1061a7de1 100644 --- a/gpsbabel/navicache.cc +++ b/gpsbabel/navicache.cc @@ -225,5 +225,5 @@ ff_vecs_t navicache_vecs = { nav_write, NULL, nav_args, - CET_CHARSET_ASCII, 0 /* CET-REVIEW */ + CET_CHARSET_UTF8, 0 /* CET-REVIEW */ }; -- 2.30.2